
    <!-- Page title -->
    <div id="pagetitle">
		我的桌面 客户管理
        <div id="titleedit"><a href="javascript:aa('#addu',1);"><img src="/img/add.png" alt="添加" width="16" height="16" >创建</a></div>
</div>
    <!-- End of Page title -->
    <!-- Page content -->
    <div id="page">
	  <p></p>
      <table width="60%" border="0" align="center" cellpadding="0" cellspacing="2" id="Result">
          <tr align="center">
            <td width="28%">用户名</td>
            <td width="28%">最后登录时间</td>
            <td width="21%">状态</td>
          </tr>
          <?php
          foreach($page_list as $item):
		  ?>
          <tr align="center">
            <td><?=$item['username']?></td>
            <td><?=date('Y-m-d H:i',$item['lasttime'])?></td>
            <td><a href="javascript:aa('#eidtu',<?=$item['id']?>);">修改</a> | <a href="<?=site_url('tlianmengs/adminuser/del/'.$verification.'/'.$item['id'])?>">删除</a>
            </td>
          </tr>
  		<?php
        	endforeach;
		?>
      </table>
      <div class="modal" id="eidtu">
      <h2>修改密码</h2>
      <form action="<?=site_url('/tlianmengs/adminuser/edit/')?>" method="post">
      	新密码：<input type="password" id="password" class="full"  value="" name="password"/><br />
        确认密码：<input type="password" id="re_password" class="full"  value="" name="re_password"/><br />
        <input type="submit" class="btn btn-green big" value="修改"/> &nbsp;&nbsp; 
        <span class="close"><input type="button" id="overlayClose" class="btn btn-green big" value="返回" /></span>
        <input type="hidden" name="verification" id="verification" value="<?=$verification?>" />
        <input type="hidden" id="admin_id" name="admin_id" value="0" />
      </form>
      </div>
     <div class="modal" id="addu">
      <h2>添加用户</h2>
      <form action="<?=site_url('/tlianmengs/adminuser/add/')?>" method="post">
        <label class="required" for="username">用户名：</label>
      	  <input type="text" id="username" class="full"  value="" name="username"/><br />
         <label>密　码：</label>
        <input type="password" id="password" class="full"  value="" name="password"/><br />
        <label>确认密码：</label>
        <input type="password" id="re_password" class="full"  value="" name="re_password"/><br /><br />
        <input type="submit" class="btn btn-green big" value="添加" /> &nbsp;&nbsp; 
        <span class="close"><input type="button" id="overlayClose" class="btn btn-green big" value="返回" /></span>
        
        <input type="hidden" name="verification" id="verification" value="<?=$verification?>" />
        <input type="hidden" id="admin_id" value="0" />
      </form>
      </div>
      <script>
	  function aa(nid,vas) {
		    
			$(nid).overlay().load();
		  	if(nid == '#eidtu')
			{
				$('#admin_id').val(vas);
			}
		  }
	 	$("#eidtu").overlay({
			  mask: {
				  color: '#ebecff', 
				  loadSpeed: 200, 
				  opacity: 0.9,
				  close:'#overlayClose'
				  },       
			closeOnClick: false,
			  });
		$("#addu").overlay({
			  mask: {
				  color: '#ebecff', 
				  loadSpeed: 200, 
				  opacity: 0.9,
				  close:'#overlayClose'
				  },       
			closeOnClick: false,
			  });
	  </script>
    </div>
    